<?php
namespace app\common\model;

use think\Model;
//辅导员课程
class LessonModel extends Model
{

	public function names(){
		return $this->hasOne('LessonNameModel','name_id','name_id');
	}
	public function school(){
		return $this->belongsTo('SchoolModel','school_id','id')->field('name');
	}
}